<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-07-30 17:45
 *
 * Version: 2.0
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class StoreService extends Model
{
	protected $table = "store_service";
	protected $guarded = [];


	public function userRoyalty(){
		return $this->hasMany(UserRoyalty::class,'id','service_id');
	}


	public function category(){
		return $this->belongsTo(DictionaryItem::class,'type','id');
	}


	public function appointment(){
		return $this->hasMany(Appointment::class,'service_id','id');
	}
}